package io.hilo.example;

import org.springframework.context.annotation.ComponentScan;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;

import org.hilo.boot.BootstrapConfig;
import org.hilo.boot.app.config.MainApplication;

/**
 * Spring Boot 应用启动类
 * 
 */
@ComponentScan({ StartApplication.APP_PACKAGE })
@EnableDubbo(scanBasePackages = StartApplication.APP_PACKAGE)
public class StartApplicationDubbo extends BootstrapConfig {
    // 此扫描路径为Demo示意，请根据实际情况修改（和添加）
    public static final String APP_PACKAGE = "io.hilo.example";

    public synchronized static void main(String[] args) throws InterruptedException {
        
        MainApplication.run(
                StartApplication.class, 
                "--spring.profiles.active=dbbase,dubbo,log,dev");
        
        keepRunning();
    }

}
